//
//  EMSAppController.h
//  EVE Mac Suite
//
//  Created by Vadim Lozko on 2/6/09.
//  Copyright 2009 __Vadim__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "EMSGeneralUtils.h"

@class EMSAppViewController;
@class EMSCharactersWindowController;
@class EMSCharacterViewController;
@class EMSTrainingQueueProgressBar;
@class EVECDCharacter;
@class EVECDServer;

@interface EMSAppController : NSObject <EMSCharactersWindowControllerDelegate, EMSCharacterViewControllerDelegate> {
	IBOutlet EMSAppViewController* appViewController;
	IBOutlet NSWindow* updateInProgressWindow;
	IBOutlet NSTextField* updateInProgressTextField;
	IBOutlet NSProgressIndicator* updateInProgressProgressIndicator;
	IBOutlet NSArrayController* characterControllerArrayController;
	
	IBOutlet NSWindow* mainWindow;
	IBOutlet NSView* contentView;
	//IBOutlet NSPopUpButton* charactersPopUpButton;
	
	NSMutableSet* characterControllers;
	EVECDServer* server;
}

@property (retain) NSMutableSet* characterControllers;
@property (readonly) EMSCharacterViewController* selectedCharacterController;
@property (assign) EVECDServer* server;

-(IBAction)createNewCharacter:(id)sender;
-(IBAction)selectCharacter:(id)sender;

-(IBAction)showMainWindow:(id)sender;
-(IBAction)saveContext:(id)sender;
-(IBAction)openPreferences:(id)sender;
-(IBAction)cancelDownload:(id)sender;

-(void)removeCharacter;
-(void)resetAndRestart;

@end

